<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>天禾汽车租赁系统</title>
    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css">
    <link rel="stylesheet" href="/static/css/index.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">
            <%--<img src="/static/imgs/logo.png" alt="天禾汽车租赁系统">--%>
            <span style="font-size: 18px">天禾汽车租赁系统</span>
        </div>
        <!-- 头部区域（可配合layui已有的水平导航） -->

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    ${user.username}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:">基本资料</a></dd>
                    <dd><a href="javascript:" id="resetPass">修改密码</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/logout">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <%--<c:forEach items="${menuList}" var="moduleMenu" varStatus="i">
                    <li class="layui-nav-item <c:if test="${i.first}">layui-nav-itemed</c:if>">
                        <a href="javascript:">${moduleMenu.name}</a>
                            <dl class="layui-nav-child">
                                <c:forEach items="${moduleMenu.submenus}" var="pageMenu">
                                    <dd><a href="${pageMenu.uri}" target="main_frame">${pageMenu.name}</a></dd>
                                </c:forEach>
                            </dl>
                    </li>
                </c:forEach>--%>




                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:">我要租车</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/rent/customerRegis" target="main_frame">租车登记</a></dd>
                            <dd><a href="/yurent" target="main_frame">预定租车</a></dd>
                        </dl>
                    </li>
                   <li class="layui-nav-item ">
                       <a class="" href="javascript:">我要还车</a>
                       <dl class="layui-nav-child">
                           <dd><a href="/returncar" target="main_frame">还车列表</a></dd>
                           <dd><a href="/returncar/returnregister" target="main_frame">我要还车</a></dd>
                       </dl>
                   </li>
                    <%--<li class="layui-nav-item ">
                        <a class="" href="javascript:">分享爱车</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:" target="main_frame">新车入册</a></dd>
                            <dd><a href="javascript:" target="main_frame">新车审核</a></dd>
                            <dd><a href="javascript:" target="main_frame">新车上架</a></dd>
                        </dl>
                    </li>--%>
                    <li class="layui-nav-item ">
                        <a class="" href="javascript:">车辆管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/cars" target="main_frame">车辆查询</a></dd>
                            <dd><a href="/insurance" target="main_frame">车辆保险</a></dd>
                            <dd><a href="/repair" target="main_frame">车辆维修</a></dd>
                            <dd><a href="/maintain" target="main_frame">车辆保养</a></dd>
                            <dd><a href="/yearcheck" target="main_frame">车辆年检</a></dd>
                            <dd><a href="/selfuse" target="main_frame">车辆自用</a></dd>
                            <dd><a href="/carOrder/rentHistory" target="main_frame">租用历史</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item ">
                        <a class="" href="javascript:">客户管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/blackList" target="main_frame">黑名单表</a></dd>
                            <dd><a href="/creditRecord" target="main_frame">信用记录</a></dd>
                            <dd><a href="/client" target="main_frame">客户信息</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item ">
                        <a class="" href="javascript:">权限管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/permission" target="main_frame">资源管理</a></dd>
                            <dd><a href="/role" target="main_frame">角色管理</a></dd>
                            <dd><a href="/user" target="main_frame">账户管理</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item ">
                        <a class="" href="javascript:">租赁财务</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/finance/carsub" target="main_frame">单车收支科目</a></dd>
                            <dd><a href="/finance/monthsub" target="main_frame">单月收支科目</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item ">
                        <a class="" href="javascript:">系统设置</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/accountmsg" target="main_frame">个人信息设置</a></dd>
                            <dd><a href="/clientlevel" target="main_frame">系统会员级别</a></dd>
                            <dd><a href="/sysdict" target="main_frame">系统字典管理</a></dd>
                            <dd><a href="/syslog" target="main_frame">系统操作日志</a></dd>
                            <dd><a href="/dept" target="main_frame">门店信息管理</a></dd>
                        </dl>
                    </li>

            </ul>

        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <iframe  name="main_frame"  class="main"  frameborder="0"></iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © layui.com - 底部固定区域
    </div>
</div>
<script src="/static/plugins/jquery.js"></script>
<script src="/static/plugins/layui/layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use(['element','layer'], function(){
        var element = layui.element;
        var layer = layui.layer

        $("#resetPass").on('click',function (e) {
            e.preventDefault();
            lay_rp = layer.open({
                type:2,
                closeBtn:1,
                title:'修改密码',
                area:['600px','400px'],
                content:'/resetPass',
               /* btn:['保存','取消'],*/
                yes:function(index,layero){
                   /* var iframeWin = window[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象，执行iframe页的方法：iframeWin.method();
                    iframeWin.mySubmit();  //手动触发校验*/
                },
                btn2: function(index) {
                    layer.close(index);
                }

            })
        })

    });
</script>
</body>
</html>